# !python3
# encoding=utf-8

import urllib.request as urllib2, io, gzip, json, http.cookiejar, time
from bs4 import BeautifulSoup
from SqlLink import SqlService


class NewbieFly():
    def __init__(self):
        self.index = "http://www.newbiefly.com"
        self.url = "http://www.newbiefly.com/?gift=3290"
        self.FormData = {
            'action': 'dmeng_exchange_ajax',
            'post_id': 3290,
            'wp_nonce': '24d08a0de3'
        }
        self.TestUrl = "http://www.newbiefly.com/?post_type=gift&t=21"
        self.headers = {
            'Connection': 'keep-alive',
            'Cache-Control': 'max-age=0',
            'Accept': 'text/html, */*; q=0.01',
            'X-Requested-With': 'XMLHttpRequest',
            'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.89 Safari/537.36',
            'DNT': '1',
            # 'Accept-Encoding': 'gzip, deflate, sdch',
            'Accept-Encoding': 'gzip, deflate',
            # 'Accept-Encoding': ' deflate, sdch',
            'Accept-Language': 'zh-CN,zh;q=0.8,ja;q=0.6',
            'Cookie': '000UM_distinctid=167e8f45f2e2ed-002c70af8d78c8-65567528-ff000-167e8f45f2f136; '
                      'wordpress_logged_in_85bde5557e9e3b46ad86adcf94e138cf=%E6%88%91%E4%B8%8D%E6%98%AF%E4%BD%A0%E7%9A%84%E8%82%96%E5%A5%88%7C1547011372%7CYqWBHQhQLrJyr7AaWP4Yq3rtP8oIB93BfQ2iFCBEMqT%7C15733396193986fb06f89dce109a8817dffc5bc1955a3c3894d161ae413580ea; '
                      'CNZZDATA1272856144=460432333-1545797383-http%253A%252F%252Fwww.heanny.cn%252F%7C1546056010; '
                      'Hm_lvt_007a46f1b423a73c9e48256c006ec321=1545962303,1545964556,1545971493,1546057916; '
                      'dmeng_check_nonce=24d08a0de3; Hm_lpvt_007a46f1b423a73c9e48256c006ec321=1546058023',
            'Host': 'www.newbiefly.com',
            'Referer': self.index
        }
        self.urlData = None
        self.ClassUrls = ['http://www.newbiefly.com/?post_type=gift&t=17',
                          'http://www.newbiefly.com/?post_type=gift&t=65',
                          'http://www.newbiefly.com/?post_type=gift&t=29',
                          'http://www.newbiefly.com/?post_type=gift&t=39',
                          'http://www.newbiefly.com/?post_type=gift&t=14',
                          'http://www.newbiefly.com/?post_type=gift&t=83',
                          'http://www.newbiefly.com/?post_type=gift&t=31',
                          'http://www.newbiefly.com/?post_type=gift&t=16',
                          'http://www.newbiefly.com/?post_type=gift&t=13',
                          'http://www.newbiefly.com/?post_type=gift&t=66',
                          'http://www.newbiefly.com/?post_type=gift&t=32',
                          'http://www.newbiefly.com/?post_type=gift&t=15',
                          'http://www.newbiefly.com/?post_type=gift&t=28',
                          'http://www.newbiefly.com/?post_type=gift&t=81',
                          'http://www.newbiefly.com/?post_type=gift&t=22',
                          'http://www.newbiefly.com/?post_type=gift&t=18',
                          'http://www.newbiefly.com/?post_type=gift&t=48',
                          'http://www.newbiefly.com/?post_type=gift&t=72',
                          'http://www.newbiefly.com/?post_type=gift&t=80',
                          'http://www.newbiefly.com/?post_type=gift&t=84',
                          'http://www.newbiefly.com/?post_type=gift&t=46',
                          'http://www.newbiefly.com/?post_type=gift&t=20',
                          'http://www.newbiefly.com/?post_type=gift&t=47',
                          'http://www.newbiefly.com/?post_type=gift&t=44',
                          'http://www.newbiefly.com/?post_type=gift&t=38',
                          'http://www.newbiefly.com/?post_type=gift&t=79',
                          'http://www.newbiefly.com/?post_type=gift&t=58',
                          'http://www.newbiefly.com/?post_type=gift&t=26',
                          'http://www.newbiefly.com/?post_type=gift&t=27',
                          'http://www.newbiefly.com/?post_type=gift&t=34',
                          'http://www.newbiefly.com/?post_type=gift&t=64',
                          'http://www.newbiefly.com/?post_type=gift&t=73',
                          'http://www.newbiefly.com/?post_type=gift&t=59',
                          'http://www.newbiefly.com/?post_type=gift&t=19',
                          'http://www.newbiefly.com/?post_type=gift&t=69',
                          'http://www.newbiefly.com/?post_type=gift&t=71',
                          'http://www.newbiefly.com/?post_type=gift&t=62',
                          'http://www.newbiefly.com/?post_type=gift&t=63',
                          'http://www.newbiefly.com/?post_type=gift&t=61',
                          'http://www.newbiefly.com/?post_type=gift&t=68',
                          'http://www.newbiefly.com/?post_type=gift&t=67',
                          'http://www.newbiefly.com/?post_type=gift&t=82',
                          'http://www.newbiefly.com/?post_type=gift&t=30',
                          'http://www.newbiefly.com/?post_type=gift&t=21',
                          'http://www.newbiefly.com/?paged=2&post_type=gift&t=17',
                          'http://www.newbiefly.com/?paged=3&post_type=gift&t=17',
                          'http://www.newbiefly.com/?paged=2&post_type=gift&t=29',
                          'http://www.newbiefly.com/?paged=2&post_type=gift&t=16',
                          'http://www.newbiefly.com/?paged=2&post_type=gift&t=13',
                          'http://www.newbiefly.com/?paged=3&post_type=gift&t=13',
                          'http://www.newbiefly.com/?paged=5&post_type=gift&t=13',
                          'http://www.newbiefly.com/?paged=2&post_type=gift&t=15',
                          'http://www.newbiefly.com/?paged=2&post_type=gift&t=28',
                          'http://www.newbiefly.com/?paged=2&post_type=gift&t=22',
                          'http://www.newbiefly.com/?paged=3&post_type=gift&t=22',
                          'http://www.newbiefly.com/?paged=2&post_type=gift&t=80',
                          'http://www.newbiefly.com/?paged=2&post_type=gift&t=20',
                          'http://www.newbiefly.com/?paged=3&post_type=gift&t=20',
                          'http://www.newbiefly.com/?paged=2&post_type=gift&t=73',
                          'http://www.newbiefly.com/?paged=2&post_type=gift&t=21']
        self.giftUrls = ['http://www.newbiefly.com/?gift=3354', 'http://www.newbiefly.com/?gift=3290',
                         'http://www.newbiefly.com/?gift=3226', 'http://www.newbiefly.com/?gift=3168',
                         'http://www.newbiefly.com/?gift=3018', 'http://www.newbiefly.com/?gift=2928',
                         'http://www.newbiefly.com/?gift=2629', 'http://www.newbiefly.com/?gift=2573',
                         'http://www.newbiefly.com/?gift=2457', 'http://www.newbiefly.com/?gift=2469',
                         'http://www.newbiefly.com/?gift=2326', 'http://www.newbiefly.com/?gift=2244',
                         'http://www.newbiefly.com/?gift=2229', 'http://www.newbiefly.com/?gift=2228',
                         'http://www.newbiefly.com/?gift=2236', 'http://www.newbiefly.com/?gift=2174',
                         'http://www.newbiefly.com/?gift=2165', 'http://www.newbiefly.com/?gift=2163',
                         'http://www.newbiefly.com/?gift=956',
                         'http://www.newbiefly.com/?gift=android%e7%ac%ac%e4%b8%80%e8%a1%8c%e4%bb%a3%e7%a0%81%ef%bc%88%e4%b9%a6%e7%b1%8d%e6%ba%90%e7%a0%81-%e9%9d%9evip%ef%bc%89',
                         'http://www.newbiefly.com/?gift=3267', 'http://www.newbiefly.com/?gift=3125',
                         'http://www.newbiefly.com/?gift=2873', 'http://www.newbiefly.com/?gift=2594',
                         'http://www.newbiefly.com/?gift=2579', 'http://www.newbiefly.com/?gift=2546',
                         'http://www.newbiefly.com/?gift=1965', 'http://www.newbiefly.com/?gift=1922',
                         'http://www.newbiefly.com/?gift=1917', 'http://www.newbiefly.com/?gift=1829',
                         'http://www.newbiefly.com/?gift=1686',
                         'http://www.newbiefly.com/?gift=c%e7%ac%ac%e4%ba%94%e6%9c%9f',
                         'http://www.newbiefly.com/?gift=c%e8%af%ad%e8%a8%80c%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b%e8%87%aa%e5%ad%a6%e7%bc%96%e7%a8%8b%e5%9f%ba%e7%a1%80%e5%85%a5%e9%97%a8%e6%95%b0%e6%8d%ae%e7%bb%93%e6%9e%84%e9%a1%b9%e7%9b%ae%e5%ae%9e',
                         'http://www.newbiefly.com/?gift=%e8%be%be%e5%86%85c%e5%a5%97%e8%a3%85%ef%bc%88vip%ef%bc%89',
                         'http://www.newbiefly.com/?gift=803', 'http://www.newbiefly.com/?gift=802',
                         'http://www.newbiefly.com/?gift=801', 'http://www.newbiefly.com/?gift=800',
                         'http://www.newbiefly.com/?gift=c%e7%bc%96%e7%a8%8b%e6%8f%ad%e7%a7%98%e4%b8%8e%e9%98%b2%e8%8c%83',
                         'http://www.newbiefly.com/?gift=c%e8%af%ad%e8%a8%80%e6%b7%b1%e5%ba%a6%e8%a7%a3%e5%89%96-%e8%a7%a3%e5%bc%80%e7%a8%8b%e5%ba%8f%e5%91%98%e9%9d%a2%e8%af%95%e7%ac%94%e8%af%95%e7%9a%84%e7%a7%98%e5%af%86',
                         'http://www.newbiefly.com/?gift=932',
                         'http://www.newbiefly.com/?gift=c-primer-plus%e4%b8%ad%e6%96%87%e7%89%88%e7%ac%ac4%e3%80%815%e3%80%816%e7%89%88',
                         'http://www.newbiefly.com/?gift=2015%e6%9c%80%e5%85%a8%e6%95%b4%e5%a5%97casp-net%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b-%e5%95%86%e5%9f%8e%e7%bd%91%e7%ab%99oa%e6%a1%86%e6%9e%b6%e9%a1%b9%e7%9b%ae%e5%bc%80%e5%8f%91mvc',
                         'http://www.newbiefly.com/?gift=%e6%9e%81%e5%ae%a2%e5%ad%a6%e9%99%a22015%e6%9c%80%e6%96%b0-asp-net%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b',
                         'http://www.newbiefly.com/?gift=cado-netwpf-net%e6%95%99%e7%a8%8bunity3d',
                         'http://www.newbiefly.com/?gift=%e6%9e%97%e6%b0%b8%e5%9d%9asliverlight-for-wp%e5%bc%80%e5%8f%91%e6%95%99%e7%a8%8b',
                         'http://www.newbiefly.com/?gift=silverlight%e6%95%99%e7%a8%8b',
                         'http://www.newbiefly.com/?gift=wpf%e5%9f%ba%e7%a1%80%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b%e7%ac%ac%e4%b8%89%e5%ad%a3-%e6%9d%a8%e4%b8%ad%e7%a7%91',
                         'http://www.newbiefly.com/?gift=c-%e5%9f%ba%e7%a1%80%e6%95%99%e7%a8%8b',
                         'http://www.newbiefly.com/?gift=2014%e4%bc%a0%e6%99%ba%e6%92%ad%e5%ae%a2-net',
                         'http://www.newbiefly.com/?gift=3263', 'http://www.newbiefly.com/?gift=2708',
                         'http://www.newbiefly.com/?gift=web%e5%a4%a7%e5%89%8d%e7%ab%af%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b',
                         'http://www.newbiefly.com/?gift=mai%e5%ad%90%e5%ad%a6%e9%99%a2web%e5%a4%a7%e5%89%8d%e7%ab%af',
                         'http://www.newbiefly.com/?gift=1721', 'http://www.newbiefly.com/?gift=1620',
                         'http://www.newbiefly.com/?gift=web%e5%89%8d%e7%ab%af-htmlcsshtm5javascriptjqueryeasyuibootstrap',
                         'http://www.newbiefly.com/?gift=%e5%b8%83%e5%b0%94%e6%95%99%e8%82%b2_html5%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b',
                         'http://www.newbiefly.com/?gift=html5-%e5%bc%80%e5%8f%91',
                         'http://www.newbiefly.com/?gift=2355', 'http://www.newbiefly.com/?gift=2179',
                         'http://www.newbiefly.com/?gift=2073',
                         'http://www.newbiefly.com/?gift=web-app%e9%98%85%e8%af%bb%e5%99%a8%e5%ae%9e%e6%88%98%e9%a1%b9%e7%9b%ae%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b',
                         'http://www.newbiefly.com/?gift=2064',
                         'http://www.newbiefly.com/?gift=ffmpeg%e9%9f%b3%e9%a2%91%e5%bc%80%e5%8f%91%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b%ef%bc%8c%e8%b7%a8%e5%b9%b3%e5%8f%b0%e7%9a%84%ef%bc%81',
                         'http://www.newbiefly.com/?gift=2039', 'http://www.newbiefly.com/?gift=2011',
                         'http://www.newbiefly.com/?gift=1651',
                         'http://www.newbiefly.com/?gift=%e5%b0%8f%e9%a9%ac%e5%93%a5ios9%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b%e5%88%86%e4%ba%ab',
                         'http://www.newbiefly.com/?gift=2016%e5%b9%b4%e5%a4%a7%e7%a5%9e%e7%8f%ad%e5%b0%8f%e7%a0%81%e5%93%a5%e7%ac%ac%e4%ba%94%e6%9c%9f%e8%a7%86%e9%a2%91ui%e6%95%99%e7%a8%8bios9swift%e5%bc%80%e5%8f%91%e5%85%a8%e5%a5%97%e5%ae%8c%e6%95%b4',
                         'http://www.newbiefly.com/?gift=ios9%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b',
                         'http://www.newbiefly.com/?gift=3393', 'http://www.newbiefly.com/?gift=3347',
                         'http://www.newbiefly.com/?gift=3322', 'http://www.newbiefly.com/?gift=3310',
                         'http://www.newbiefly.com/?gift=3284', 'http://www.newbiefly.com/?gift=3257',
                         'http://www.newbiefly.com/?gift=3201', 'http://www.newbiefly.com/?gift=3197',
                         'http://www.newbiefly.com/?gift=3134', 'http://www.newbiefly.com/?gift=3118',
                         'http://www.newbiefly.com/?gift=3066', 'http://www.newbiefly.com/?gift=3013',
                         'http://www.newbiefly.com/?gift=2956', 'http://www.newbiefly.com/?gift=2947',
                         'http://www.newbiefly.com/?gift=2943', 'http://www.newbiefly.com/?gift=2939',
                         'http://www.newbiefly.com/?gift=2865', 'http://www.newbiefly.com/?gift=2732',
                         'http://www.newbiefly.com/?gift=1904',
                         'http://www.newbiefly.com/?gift=headfirst%e8%ae%be%e8%ae%a1%e6%a8%a1%e5%bc%8f',
                         'http://www.newbiefly.com/?gift=%e7%bc%96%e5%86%99%e9%ab%98%e8%b4%a8%e9%87%8f%e4%bb%a3%e7%a0%81%e6%94%b9%e5%96%84java%e7%a8%8b%e5%ba%8f%e7%9a%84151%e4%b8%aa%e5%bb%ba%e8%ae%ae',
                         'http://www.newbiefly.com/?gift=938', 'http://www.newbiefly.com/?gift=2997',
                         'http://www.newbiefly.com/?gift=2213', 'http://www.newbiefly.com/?gift=2027',
                         'http://www.newbiefly.com/?gift=1866', 'http://www.newbiefly.com/?gift=1712',
                         'http://www.newbiefly.com/?gift=1627', 'http://www.newbiefly.com/?gift=1630',
                         'http://www.newbiefly.com/?gift=%e5%b0%9a%e8%a7%82linuxoracle%e9%9b%b6%e5%9f%ba%e7%a1%80%e5%88%b0%e7%b2%be%e9%80%9a%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b',
                         'http://www.newbiefly.com/?gift=linux%e5%86%85%e6%a0%b8%e5%88%86%e6%9e%90',
                         'http://www.newbiefly.com/?gift=819',
                         'http://www.newbiefly.com/?gift=%e9%b8%9f%e5%93%a5%e7%9a%84linux%e7%a7%81%e6%88%bf%e8%8f%9c%e7%ac%ac%e4%b8%89%e7%89%88%e5%9f%ba%e7%a1%80%e7%af%87%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%af%87',
                         'http://www.newbiefly.com/?gift=%e9%bb%91%e5%ae%a2%e9%a3%8e%e4%ba%91vip%e6%95%99%e7%a8%8b_linux%e6%93%8d%e4%bd%9c%e7%b3%bb%e7%bb%9f%e5%ae%89%e8%a3%85%e5%8f%8a%e6%9c%8d%e5%8a%a1%e5%99%a8%e6%90%ad%e5%bb%ba%e5%9f%b9%e8%ae%ad%e7%8f%ad',
                         'http://www.newbiefly.com/?gift=linux%e6%95%99%e7%a8%8b',
                         'http://www.newbiefly.com/?gift=3127',
                         'http://www.newbiefly.com/?gift=%e4%ba%91%e7%9f%a5%e6%a2%a6php%e5%85%a8%e7%ab%99%e5%b7%a5%e7%a8%8b%e5%b8%88',
                         'http://www.newbiefly.com/?gift=2448', 'http://www.newbiefly.com/?gift=2205',
                         'http://www.newbiefly.com/?gift=2199',
                         'http://www.newbiefly.com/?gift=yii2-0%e7%94%b5%e5%95%86%e9%a1%b9%e7%9b%ae%e5%ae%9e%e6%88%98%e6%95%99%e7%a8%8b',
                         'http://www.newbiefly.com/?gift=1614', 'http://www.newbiefly.com/?gift=1518',
                         'http://www.newbiefly.com/?gift=2016%e6%9c%80%e6%96%b0thinkphp',
                         'http://www.newbiefly.com/?gift=php-yii2%e6%a1%86%e6%9e%b6%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b%e9%9b%86%e5%90%88',
                         'http://www.newbiefly.com/?gift=php42%e6%9c%9f%e5%9f%ba%e7%a1%80%e7%8f%ad%e5%b0%b1%e4%b8%9a%e7%8f%ad',
                         'http://www.newbiefly.com/?gift=2016%e5%b9%b4%e6%9c%80%e6%96%b0php%e5%9f%ba%e7%a1%80%e5%a4%a7%e7%8b%ae%e7%8f%ad%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b',
                         'http://www.newbiefly.com/?gift=php%e6%95%99%e7%a8%8b%e8%a7%86%e9%a2%9139%e6%9c%9f',
                         'http://www.newbiefly.com/?gift=%e5%85%84%e5%bc%9f%e8%bf%9ephp%e5%85%a8%e5%a5%97',
                         'http://www.newbiefly.com/?gift=%e7%87%95%e5%8d%81%e5%85%abphp%e5%85%a8%e5%a5%97%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b',
                         'http://www.newbiefly.com/?gift=%e5%85%84%e5%bc%9f%e8%bf%9e%e9%ab%98%e6%b4%9b%e5%b3%b02014%e7%89%88php%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b%e5%85%a8%e5%a5%97',
                         'http://www.newbiefly.com/?gift=php100%e7%b3%bb%e5%88%97%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b',
                         'http://www.newbiefly.com/?gift=php%e5%b0%b1%e4%b8%9a%e7%8f%ad',
                         'http://www.newbiefly.com/?gift=3177', 'http://www.newbiefly.com/?gift=3165',
                         'http://www.newbiefly.com/?gift=2994', 'http://www.newbiefly.com/?gift=2596',
                         'http://www.newbiefly.com/?gift=2965', 'http://www.newbiefly.com/?gift=2265',
                         'http://www.newbiefly.com/?gift=2290', 'http://www.newbiefly.com/?gift=2745',
                         'http://www.newbiefly.com/?gift=2589', 'http://www.newbiefly.com/?gift=2503',
                         'http://www.newbiefly.com/?gift=2500', 'http://www.newbiefly.com/?gift=2230',
                         'http://www.newbiefly.com/?gift=2251', 'http://www.newbiefly.com/?gift=2219',
                         'http://www.newbiefly.com/?gift=2105',
                         'http://www.newbiefly.com/?gift=python%e5%bc%ba%e5%8c%96%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b',
                         'http://www.newbiefly.com/?gift=1817', 'http://www.newbiefly.com/?gift=1877',
                         'http://www.newbiefly.com/?gift=2391', 'http://www.newbiefly.com/?gift=3231',
                         'http://www.newbiefly.com/?gift=3217', 'http://www.newbiefly.com/?gift=3188',
                         'http://www.newbiefly.com/?gift=3184', 'http://www.newbiefly.com/?gift=3122',
                         'http://www.newbiefly.com/?gift=3111', 'http://www.newbiefly.com/?gift=3063',
                         'http://www.newbiefly.com/?gift=3016', 'http://www.newbiefly.com/?gift=2952',
                         'http://www.newbiefly.com/?gift=2911', 'http://www.newbiefly.com/?gift=2915',
                         'http://www.newbiefly.com/?gift=2313', 'http://www.newbiefly.com/?gift=2477',
                         'http://www.newbiefly.com/?gift=2479', 'http://www.newbiefly.com/?gift=2359',
                         'http://www.newbiefly.com/?gift=node-js%e9%a1%b9%e7%9b%ae%e5%ae%9e%e6%88%98%e6%95%99%e7%a8%8b',
                         'http://www.newbiefly.com/?gift=2436', 'http://www.newbiefly.com/?gift=2380',
                         'http://www.newbiefly.com/?gift=%e5%be%ae%e8%bd%afwp8-1%e7%a7%bb%e5%8a%a8%e5%bc%80%e5%8f%91%e8%af%be%e7%a8%8bwindow-phone-8',
                         'http://www.newbiefly.com/?gift=windows-phone-8%e9%ab%98%e7%ba%a7%e7%bc%96%e7%a8%8b%e6%8a%80%e6%9c%af%e8%af%be%e7%a8%8b%e3%80%90%e5%85%a8%e5%a5%97268%e8%af%be%e3%80%91%e6%97%a0%e6%b0%b4%e5%8d%b0%e7%89%88',
                         'http://www.newbiefly.com/?gift=1608', 'http://www.newbiefly.com/?gift=3029',
                         'http://www.newbiefly.com/?gift=1660', 'http://www.newbiefly.com/?gift=1666',
                         'http://www.newbiefly.com/?gift=%e6%89%8b%e6%8a%8a%e6%89%8b%e6%95%99%e4%bd%a0%e5%81%9a%e4%ba%a7%e5%93%81%e7%bb%8f%e7%90%86%e5%85%a8%e5%a5%97%e8%a7%86%e9%a2%91%e4%b8%8b%e8%bd%bd',
                         'http://www.newbiefly.com/?gift=3388', 'http://www.newbiefly.com/?gift=3160',
                         'http://www.newbiefly.com/?gift=2660', 'http://www.newbiefly.com/?gift=2972',
                         'http://www.newbiefly.com/?gift=2969', 'http://www.newbiefly.com/?gift=2962',
                         'http://www.newbiefly.com/?gift=2924', 'http://www.newbiefly.com/?gift=2891',
                         'http://www.newbiefly.com/?gift=2737', 'http://www.newbiefly.com/?gift=2783',
                         'http://www.newbiefly.com/?gift=2658', 'http://www.newbiefly.com/?gift=2585',
                         'http://www.newbiefly.com/?gift=kaggle%e5%ae%9e%e6%88%98%e7%8f%ad',
                         'http://www.newbiefly.com/?gift=3338', 'http://www.newbiefly.com/?gift=3006',
                         'http://www.newbiefly.com/?gift=3003', 'http://www.newbiefly.com/?gift=2909',
                         'http://www.newbiefly.com/?gift=2656',
                         'http://www.newbiefly.com/?gift=%e5%8a%9b%e5%a4%a9dian%e5%ad%90__%e6%89%8b%e6%8a%8a%e6%89%8b%e6%95%99%e4%bd%a0%e5%ad%a6dsplt-dsp2812',
                         'http://www.newbiefly.com/?gift=51%e5%8d%95%e7%89%87%e6%9c%ba%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b%e9%9b%86%e5%90%88',
                         'http://www.newbiefly.com/?gift=3358', 'http://www.newbiefly.com/?gift=3302',
                         'http://www.newbiefly.com/?gift=3154', 'http://www.newbiefly.com/?gift=3043',
                         'http://www.newbiefly.com/?gift=3083', 'http://www.newbiefly.com/?gift=3046',
                         'http://www.newbiefly.com/?gift=3053', 'http://www.newbiefly.com/?gift=3038',
                         'http://www.newbiefly.com/?gift=3051', 'http://www.newbiefly.com/?gift=3032',
                         'http://www.newbiefly.com/?gift=2860', 'http://www.newbiefly.com/?gift=2960',
                         'http://www.newbiefly.com/?gift=2776', 'http://www.newbiefly.com/?gift=2742',
                         'http://www.newbiefly.com/?gift=2521', 'http://www.newbiefly.com/?gift=2455',
                         'http://www.newbiefly.com/?gift=2398',
                         'http://www.newbiefly.com/?gift=%e5%9b%bd%e5%b5%8c-%e7%b2%be%e9%80%9a%e5%b5%8c%e5%85%a5%e5%bc%8f',
                         'http://www.newbiefly.com/?gift=%e9%9f%a6%e4%b8%9c%e5%b1%b1-%e5%b5%8c%e5%85%a5%e5%bc%8f-%e7%ac%ac%e4%b8%80%e6%9c%9f%e5%92%8c%e7%ac%ac%e5%9b%9b%e6%9c%9f%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b',
                         'http://www.newbiefly.com/?gift=%e5%9b%bd%e5%b5%8c%e5%b5%8c%e5%85%a5%e5%bc%8farm-linux%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b',
                         'http://www.newbiefly.com/?gift=uboot%ef%bc%88%e5%9f%ba%e4%ba%8e%e4%b8%89%e6%98%9fa8-s5pv210-%ef%bc%89',
                         'http://www.newbiefly.com/?gift=2407', 'http://www.newbiefly.com/?gift=2351',
                         'http://www.newbiefly.com/?gift=2349', 'http://www.newbiefly.com/?gift=1941',
                         'http://www.newbiefly.com/?gift=1557',
                         'http://www.newbiefly.com/?gift=%e7%bd%91%e9%a1%b5%e4%b8%8eui%e8%ae%be%e8%ae%a1%e4%bb%8e%e5%85%a5%e9%97%a8%e5%88%b0%e7%b2%be%e9%80%9a%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b-%e6%9d%8e%e6%99%a8',
                         'http://www.newbiefly.com/?gift=%e5%a4%a9%e5%ad%a6%e4%bc%9aui%e5%9b%be%e6%a0%87%e8%ae%be%e8%ae%a1-ui%e8%ae%be%e8%ae%a1%e6%95%99',
                         'http://www.newbiefly.com/?gift=2066',
                         'http://www.newbiefly.com/?gift=7%e5%a5%97%e5%be%ae%e4%bf%a1%e5%85%ac%e4%bc%97%e5%b9%b3%e5%8f%b0%e5%8f%b7%e4%ba%8c%e6%ac%a1%e5%bc%80%e5%8f%91%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b24%e9%9b%86%e5%85%84%e5%bc%9f%e8%bf%9e-%e6%8e%a5',
                         'http://www.newbiefly.com/?gift=%e5%be%ae%e4%bf%a1%e5%85%ac%e4%bc%97%e5%b9%b3%e5%8f%b0%e5%bc%80%e5%8f%91%e6%95%99%e7%a8%8b',
                         'http://www.newbiefly.com/?gift=3242', 'http://www.newbiefly.com/?gift=3245',
                         'http://www.newbiefly.com/?gift=3240', 'http://www.newbiefly.com/?gift=2561',
                         'http://www.newbiefly.com/?gift=2003', 'http://www.newbiefly.com/?gift=1800',
                         'http://www.newbiefly.com/?gift=%ef%bc%81%ef%bc%81%e5%bc%ba%e5%a4%a7%e5%85%8d%e8%b4%b9%e7%9a%84%e7%bf%bb%e5%a2%99%e8%bd%af%e4%bb%b6%ef%bc%81%ef%bc%81',
                         'http://www.newbiefly.com/?gift=1639',
                         'http://www.newbiefly.com/?gift=%e6%89%8b%e6%9c%baui%e8%ae%be%e8%ae%a1%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b-%e4%bb%8e%e6%97%a0%e5%88%b0%e6%9c%89app%e8%a7%86%e8%a7%89%e8%a1%a8%e7%8e%b0-%e6%9d%8e%e6%99%a8',
                         'http://www.newbiefly.com/?gift=2858', 'http://www.newbiefly.com/?gift=2611',
                         'http://www.newbiefly.com/?gift=2556', 'http://www.newbiefly.com/?gift=2217',
                         'http://www.newbiefly.com/?gift=2116',
                         'http://www.newbiefly.com/?gift=mysql%e6%95%b0%e6%8d%ae%e5%ba%93%e6%9e%b6%e6%9e%84%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b',
                         'http://www.newbiefly.com/?gift=1980', 'http://www.newbiefly.com/?gift=1925',
                         'http://www.newbiefly.com/?gift=58%e5%90%8c%e5%9f%8e%e9%ab%98%e7%ba%a7%e7%b3%bb%e7%bb%9f%e6%9e%b6%e6%9e%84%e5%b8%88%e5%b8%a6%e4%bd%a0%e5%ae%9e%e6%88%98mongodb%e9%9b%86%e7%be%a4%e5%88%86%e5%b8%83%e5%bc%8f%e5%ad%98%e5%82%a8',
                         'http://www.newbiefly.com/?gift=mongodb%e8%a7%86%e9%a2%91-%e7%87%95%e5%8d%81%e5%85%ab-mongodb%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b%e5%85%a8%e9%9b%8621%e8%ae%b2mongodb%e9%ab%98%e7%ba%a7%e5%ae%9e%e6%88%98%e5%bc%80%e5%8f%91%e8%a7%86',
                         'http://www.newbiefly.com/?gift=nosql%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b-redis%e6%95%b0%e6%8d%ae%e5%ba%93%e7%ae%a1%e7%90%86memcached%e6%8a%80%e6%9c%afmongodbhbase%e5%bc%80%e5%8f%91',
                         'http://www.newbiefly.com/?gift=mldn%e9%ad%94%e4%b9%90%e7%a7%91%e6%8a%80javaoracle%e6%95%b0%e6%8d%ae%e5%ba%93%e8%a7%86%e9%a2%91%e8%af%be%e7%a8%8b',
                         'http://www.newbiefly.com/?gift=%e8%80%81%e7%94%b7%e5%ad%a9mysql%e9%ab%98%e7%ba%a7%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b',
                         'http://www.newbiefly.com/?gift=oracle%e6%95%b0%e6%8d%ae%e5%ba%93%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b%e9%9b%86%e5%90%88',
                         'http://www.newbiefly.com/?gift=cc%e5%ae%8c%e6%95%b4%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b%ef%bc%88%e5%9b%9b%ef%bc%89-%e6%95%b0%e6%8d%ae%e5%ba%93%ef%bc%88mysql%ef%bc%8coracle%ef%bc%89',
                         'http://www.newbiefly.com/?gift=3296', 'http://www.newbiefly.com/?gift=3214',
                         'http://www.newbiefly.com/?gift=3208', 'http://www.newbiefly.com/?gift=3108',
                         'http://www.newbiefly.com/?gift=2376', 'http://www.newbiefly.com/?gift=2275',
                         'http://www.newbiefly.com/?gift=2283', 'http://www.newbiefly.com/?gift=2050',
                         'http://www.newbiefly.com/?gift=2029', 'http://www.newbiefly.com/?gift=1971',
                         'http://www.newbiefly.com/?gift=%e5%9b%9b%e5%a4%a7%e9%ab%98%e6%a0%a1-%e6%95%b0%e6%8d%ae%e7%bb%93%e6%9e%84%e4%b8%8e%e7%ae%97%e6%b3%95%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b',
                         'http://www.newbiefly.com/?gift=780',
                         'http://www.newbiefly.com/?gift=%e5%b0%8f%e7%94%b2%e9%b1%bc_%e6%95%b0%e6%8d%ae%e7%bb%93%e6%9e%84%e4%b8%8e%e7%ae%97%e6%b3%95',
                         'http://www.newbiefly.com/?gift=java%e7%89%88%e6%95%b0%e6%8d%ae%e7%bb%93%e6%9e%84%e4%b8%8e%e7%ae%97%e6%b3%95%ef%bc%88vip%ef%bc%89',
                         'http://www.newbiefly.com/?gift=%e6%95%b0%e6%8d%ae%e7%bb%93%e6%9e%84%e4%b8%8e%e7%ae%97%e6%b3%95%ef%bc%8c%e7%ae%97%e6%b3%95%e5%af%bc%e8%ae%ba%ef%bc%8c%e5%be%ae%e7%a7%af%e5%88%86%ef%bc%8c%e6%95%b0%e5%ad%a6%e7%bb%84%e5%90%88',
                         'http://www.newbiefly.com/?gift=400%e5%a4%9a%e4%b8%aa%e6%98%93%e8%af%ad%e8%a8%80%e6%ba%90%e4%bb%a3%e7%a0%81%e5%8c%85',
                         'http://www.newbiefly.com/?gift=830', 'http://www.newbiefly.com/?gift=2425',
                         'http://www.newbiefly.com/?gift=2209', 'http://www.newbiefly.com/?gift=1998',
                         'http://www.newbiefly.com/?gift=1591', 'http://www.newbiefly.com/?gift=1705',
                         'http://www.newbiefly.com/?gift=1684', 'http://www.newbiefly.com/?gift=1633',
                         'http://www.newbiefly.com/?gift=1580', 'http://www.newbiefly.com/?gift=1551',
                         'http://www.newbiefly.com/?gift=%e8%80%81%e7%94%b7%e5%ad%a9linux%e4%bc%81%e4%b8%9a%e7%ba%a7nginx%e8%b4%9f%e8%bd%bd%e5%9d%87%e8%a1%a1%e4%b8%8ekeepalived%e9%ab%98%e5%8f%af%e7%94%a8%e5%ae%9e%e6%88%98%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b',
                         'http://www.newbiefly.com/?gift=%e9%80%86%e5%90%91%e7%b2%be%e5%8d%8evip%e8%af%be%e7%a8%8b30%e8%af%be-%e6%8f%ad%e7%a7%98%e5%8f%8d%e6%b1%87%e7%bc%96%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b',
                         'http://www.newbiefly.com/?gift=834',
                         'http://www.newbiefly.com/?gift=%e7%8e%8b%e7%88%bd%e6%b1%87%e7%bc%96%e8%af%ad%e8%a8%80%e7%94%b5%e5%ad%90%e4%b9%a6-%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b',
                         'http://www.newbiefly.com/?gift=2884', 'http://www.newbiefly.com/?gift=2559',
                         'http://www.newbiefly.com/?gift=2446', 'http://www.newbiefly.com/?gift=2440',
                         'http://www.newbiefly.com/?gift=2404', 'http://www.newbiefly.com/?gift=1983',
                         'http://www.newbiefly.com/?gift=%e6%b8%b8%e6%88%8f%e5%bc%80%e5%8f%91-unity3d%e5%b7%a5%e7%a8%8b%e5%b8%88',
                         'http://www.newbiefly.com/?gift=%e6%b8%b8%e6%88%8f%e5%bc%80%e5%8f%91-%e5%9f%ba%e4%ba%8ecocos2d%e7%9a%84iphone%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b',
                         'http://www.newbiefly.com/?gift=587',
                         'http://www.newbiefly.com/?gift=%e6%b8%b8%e6%88%8f%e5%bc%80%e5%8f%91-cocos2d-js%e5%bf%ab%e9%80%9f%e5%85%a5%e9%97%a8%e7%a9%ba%e6%88%98%e6%b8%b8%e6%88%8f%e5%ae%9e%e6%88%98',
                         'http://www.newbiefly.com/?gift=%e6%9e%81%e5%ae%a2%e5%ad%a6%e9%99%a2cocos2d-x%e5%85%a5%e9%97%a8',
                         'http://www.newbiefly.com/?gift=html5-%e6%b8%b8%e6%88%8f%e5%bc%80%e5%8f%91%e4%b8%93%e9%a2%98',
                         'http://www.newbiefly.com/?gift=2902', 'http://www.newbiefly.com/?gift=1943',
                         'http://www.newbiefly.com/?gift=%e6%99%ba%e8%83%bd%e5%ae%b6%e5%b1%85-%e5%ae%89%e5%8d%93app%e6%8e%a7%e5%88%b6%e5%b5%8c%e5%85%a5%e5%bc%8f%e8%bd%af%e7%a1%ac%e4%bb%b6%e5%bc%80%e5%8f%91%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b',
                         'http://www.newbiefly.com/?gift=zigbee%e7%89%a9%e8%81%94%e7%bd%91cc2530%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8bcc2430%e8%a7%86%e9%a2%91zigbee%e6%97%a0%e7%ba%bf%e6%a8%a1%e5%9d%97%e5%bc%80%e5%8f%91%e6%95%99%e7%a8%8b',
                         'http://www.newbiefly.com/?gift=sketch%e6%95%99%e7%a8%8b',
                         'http://www.newbiefly.com/?gift=3237',
                         'http://www.newbiefly.com/?gift=linux%e5%9f%ba%e7%a1%80%e7%b3%bb%e7%bb%9f%e6%95%99%e7%a8%8blinux%e6%9e%b6%e6%9e%84%e5%b8%88%e9%ab%98%e7%ba%a7%e7%b3%bb%e7%bb%9f%e8%b0%83%e4%bc%98%e7%ad%96%e7%95%a5%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b',
                         'http://www.newbiefly.com/?gift=%e8%ae%a1%e7%ae%97%e6%9c%ba%e7%bb%84%e6%88%90%e5%8e%9f%e7%90%86%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b%e9%9b%86%e5%90%88',
                         'http://www.newbiefly.com/?gift=%e6%93%8d%e4%bd%9c%e7%b3%bb%e7%bb%9f%e5%8e%9f%e7%90%86%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b%e9%9b%86%e5%90%88',
                         'http://www.newbiefly.com/?gift=2347',
                         'http://www.newbiefly.com/?gift=tcpip%e5%8d%8f%e8%ae%ae%e5%8e%9f%e7%90%86',
                         'http://www.newbiefly.com/?gift=%e7%bd%91%e7%bb%9c%e6%94%bb%e5%87%bb%e4%b8%8e%e9%98%b2%e5%be%a1%e6%8a%80%e6%9c%af',
                         'http://www.newbiefly.com/?gift=%e6%9e%84%e5%bb%ba%e4%b8%80%e4%b8%aa%e7%ae%80%e5%8d%95%e7%9a%84%e5%b1%80%e5%9f%9f%e7%bd%91%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b',
                         'http://www.newbiefly.com/?gift=tcp-ip%e5%8d%8f%e8%ae%ae%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b',
                         'http://www.newbiefly.com/?gift=%e4%b8%89%e5%a4%a7%e9%ab%98%e6%a0%a1-%e8%ae%a1%e7%ae%97%e6%9c%ba%e7%bd%91%e7%bb%9c%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b',
                         'http://www.newbiefly.com/?gift=889', 'http://www.newbiefly.com/?gift=787',
                         'http://www.newbiefly.com/?gift=785', 'http://www.newbiefly.com/?gift=2056',
                         'http://www.newbiefly.com/?gift=2058', 'http://www.newbiefly.com/?gift=1479',
                         'http://www.newbiefly.com/?gift=qtp11%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b%e5%8f%8a%e6%b1%89%e5%8c%96%e5%8c%85%e5%92%8c%e7%a0%b4%e8%a7%a3%e6%96%b9%e6%b3%95',
                         'http://www.newbiefly.com/?gift=loadrunner%e8%a7%86%e9%a2%91',
                         'http://www.newbiefly.com/?gift=jmeter%e4%b8%89%e5%a5%97%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b',
                         'http://www.newbiefly.com/?gift=%e6%9c%80%e6%96%b0%e8%be%be%e5%86%85%e8%bd%af%e4%bb%b6%e6%b5%8b%e8%af%95%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b',
                         'http://www.newbiefly.com/?gift=%e6%8e%a5%e5%8f%a3%e6%b5%8b%e8%af%95',
                         'http://www.newbiefly.com/?gift=%e9%ba%a6%e5%ad%90%e5%ad%a6%e9%99%a2%e6%b5%8b%e8%af%95%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b',
                         'http://www.newbiefly.com/?gift=selenium2%e9%ab%98%e6%b8%85%e8%a7%86%e9%a2%91java%e5%ae%9e%e6%88%98%e6%95%99%e7%a8%8bwebdriver%e8%bd%af%e4%bb%b6%e8%87%aa%e5%8a%a8%e5%8c%96%e6%b5%8b%e8%af%95%e6%a1%86%e6%9e%b6%e8%a7%86%e9%a2%91',
                         'http://www.newbiefly.com/?gift=%e9%9b%aa%e9%b9%b0%e8%80%81%e5%b8%88_loadrunner',
                         'http://www.newbiefly.com/?gift=%e8%bd%af%e4%bb%b6%e5%b7%a5%e7%a8%8b%e4%b8%8e%e8%bd%af%e4%bb%b6%e6%b5%8b%e8%af%95%e4%bc%98%e5%8c%96%e6%8a%80%e6%9c%af_%e4%b8%8a%e6%b5%b7%e4%ba%a4%e5%a4%a7%ef%bc%88%e5%85%a839%e9%9b%86%ef%bc%89',
                         'http://www.newbiefly.com/?gift=%e8%bd%af%e4%bb%b6%e6%b5%8b%e8%af%95-%e5%9f%ba%e7%a1%80%e8%a7%86%e9%a2%91',
                         'http://www.newbiefly.com/?gift=ccna%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b%e5%85%a8%e5%a5%97-%e5%85%a5%e9%97%a8%e8%87%b3%e7%b2%be%e9%80%9a%e8%af%be%e7%a8%8b%e7%bd%91%e7%bb%9c%e6%8a%80%e6%9c%af%e8%b7%af%e7%94%b1%e6%a8%a1%e6%8b%9f',
                         'http://www.newbiefly.com/?gift=%e8%bd%af%e8%80%83-%e7%b3%bb%e7%bb%9f%e6%9e%b6%e6%9e%84%e8%ae%be%e8%ae%a1%e5%b8%88%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b',
                         'http://www.newbiefly.com/?gift=3179', 'http://www.newbiefly.com/?gift=2390',
                         'http://www.newbiefly.com/?gift=1593', 'http://www.newbiefly.com/?gift=1556',
                         'http://www.newbiefly.com/?gift=dave%e8%80%81%e5%b8%88oracle%e9%ab%98%e7%ba%a7%e8%bf%90%e7%bb%b4%e7%ae%a1%e7%90%86%e7%8f%ad',
                         'http://www.newbiefly.com/?gift=ws2008%e6%9c%8d%e5%8a%a1%e5%99%a8%e8%bf%90%e7%bb%b4%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b',
                         'http://www.newbiefly.com/?gift=3131', 'http://www.newbiefly.com/?gift=2475',
                         'http://www.newbiefly.com/?gift=2419',
                         'http://www.newbiefly.com/?gift=visio%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b',
                         'http://www.newbiefly.com/?gift=git%e7%89%88%e6%9c%ac%e6%8e%a7%e5%88%b6svn-%e6%9d%8e%e5%bb%b7%e4%bc%9f%ef%bc%88%e9%a1%b9%e7%9b%ae%e7%ae%a1%e7%90%86%ef%bc%89',
                         'http://www.newbiefly.com/?gift=2247', 'http://www.newbiefly.com/?gift=2240',
                         'http://www.newbiefly.com/?gift=1977',
                         'http://www.newbiefly.com/?gift=wireshark%e6%8a%93%e5%8c%85%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b',
                         'http://www.newbiefly.com/?gift=c%e8%af%ad%e8%a8%80%e9%bb%91%e5%ae%a2%e7%bc%96%e7%a8%8b%e7%b3%bb%e5%88%9712%e8%af%be',
                         'http://www.newbiefly.com/?gift=%e5%b0%8f%e4%b8%83%e6%ba%90%e7%a0%81%e5%9f%b9%e8%ae%ad%e7%8f%ad',
                         'http://www.newbiefly.com/?gift=%e5%b9%bd%e7%81%b5%e5%ad%a6%e9%99%a2%e7%bd%91%e7%ab%99%e6%94%bb%e9%98%b2%e6%8a%80%e6%9c%af36%e5%bc%8f',
                         'http://www.newbiefly.com/?gift=%e5%b0%8f%e7%94%9f%e6%88%91%e6%80%95%e6%80%95%e7%a0%b4%e8%a7%a3%e7%b3%bb%e5%88%97%e5%9f%b9%e8%ae%ad%e6%95%99%e7%a8%8b',
                         'http://www.newbiefly.com/?gift=%e5%a4%a9%e8%8d%89%e7%a0%b4%e8%a7%a3%e6%95%99%e7%a8%8b%e5%88%9d%e7%ba%a7%e4%b8%ad%e7%ba%a7%e9%ab%98%e7%ba%a7',
                         'http://www.newbiefly.com/?gift=%e5%8d%8a%e6%96%a4%e5%85%ab%e4%b8%a4%e9%80%86%e5%90%91%e5%9f%b9%e8%ae%ad%e8%af%be%e7%a8%8b27%e8%af%be%e5%85%a8',
                         'http://www.newbiefly.com/?gift=show-me-why-%e8%b6%85%e5%bc%ba%e8%84%b1%e5%a3%b3%e6%95%99%e7%a8%8b',
                         'http://www.newbiefly.com/?gift=365%e5%ad%a6%e4%b9%a0%e5%9f%ba%e5%9c%b0vip%e6%ba%90%e7%a0%81%e6%95%99%e7%a8%8b',
                         'http://www.newbiefly.com/?gift=%e9%bb%91%e5%ae%a2%e6%8a%80%e6%9c%af-%e9%a3%8e%e4%ba%91%e7%bd%91%e7%bb%9cvip%e7%bd%91%e7%ab%99%e6%94%bb%e9%98%b2%e5%ae%89%e5%85%a8%e8%af%be%e7%a8%8b',
                         'http://www.newbiefly.com/?gift=2085', 'http://www.newbiefly.com/?gift=2031',
                         'http://www.newbiefly.com/?gift=1625', 'http://www.newbiefly.com/?gift=1616',
                         'http://www.newbiefly.com/?gift=2016%e6%9c%80%e6%96%b0%e7%8b%ac%e5%ae%b6%e8%80%81%e7%bd%97android%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b%e7%ac%ac%e4%ba%8c%e5%ad%a3',
                         'http://www.newbiefly.com/?gift=android%e9%80%86%e5%90%91%e5%9f%ba%e7%a1%80%e7%b3%bb%e5%88%97%e6%95%99%e7%a8%8b',
                         'http://www.newbiefly.com/?gift=android74%e6%9c%9f',
                         'http://www.newbiefly.com/?gift=%e5%ae%89%e5%8d%9366%e6%9c%9f%e4%b8%8d%e5%8a%a0%e5%af%86%e5%85%a8%e5%a5%97%e8%a7%86%e9%a2%91',
                         'http://www.newbiefly.com/?gift=android62%e6%9c%9f%ef%bc%88%e4%b8%8d%e5%8a%a0%e5%af%86%ef%bc%89',
                         'http://www.newbiefly.com/?gift=android%e5%b1%82%e6%ac%a1%e5%88%86%e6%9e%90-%e4%bb%8e%e9%a1%b6%e5%b1%82%e5%88%b0%e5%ba%95%e5%b1%82%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b',
                         'http://www.newbiefly.com/?gift=%e6%9e%81%e5%ae%a2%e5%ad%a6%e9%99%a22015%e6%9c%80%e6%96%b0android%e5%b7%a5%e7%a8%8b%e5%b8%88',
                         'http://www.newbiefly.com/?gift=android5-0%e6%96%b0%e7%89%b9%e6%80%a7',
                         'http://www.newbiefly.com/?gift=52%e6%9c%9fjavawebandroid',
                         'http://www.newbiefly.com/?gift=4%e6%9c%9f28%e6%9c%9fandroid%e5%bc%80%e5%8f%91%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b%e4%b8%8d%e9%9c%80%e8%a6%81%e6%92%ad%e6%94%be%e5%af%86%e7%a0%81',
                         'http://www.newbiefly.com/?gift=qt4%e4%b8%81%e6%9d%be%e6%9e%97%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b',
                         'http://www.newbiefly.com/?gift=c%e8%af%ad%e8%a8%80%e5%9f%ba%e7%a1%80%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b%e5%a4%a7%e9%9b%86%e5%90%88%ef%bc%8c%e6%80%bb%e6%9c%89%e9%80%82%e5%90%88%e4%bd%a0%e7%9a%84',
                         'http://www.newbiefly.com/?gift=%e4%b8%9c%e5%8d%97%e5%a4%a7%e5%ad%a6c%e8%af%ad%e8%a8%80%e7%a8%8b%e5%ba%8f%e8%ae%be%e8%ae%a1%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b-%e4%bd%95%e6%b4%81%e6%9c%88%e4%b8%bb%e8%ae%b2-%e5%85%a880%e5%ad%a6',
                         'http://www.newbiefly.com/?gift=c-primer-plus%e7%ac%ac%e5%85%ad%e7%89%88%ef%bc%88%e8%a7%86%e9%a2%91%e4%b9%a6%e7%b1%8d%ef%bc%89',
                         'http://www.newbiefly.com/?gift=cc%e5%ae%8c%e6%95%b4%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b%ef%bc%88%e4%ba%94%ef%bc%89-qt%e5%bc%80%e5%8f%91',
                         'http://www.newbiefly.com/?gift=cc%e5%ae%8c%e6%95%b4%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b%ef%bc%88%e4%b8%89%ef%bc%89-linux%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%bc%96%e7%a8%8b',
                         'http://www.newbiefly.com/?gift=cc%e5%ae%8c%e6%95%b4%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b%ef%bc%88%e4%ba%8c%ef%bc%89-cocos2dx%e8%b7%a8%e5%b9%b3%e5%8f%b0%e6%b8%b8%e6%88%8f%e5%bc%80%e5%8f%91',
                         'http://www.newbiefly.com/?gift=cc%e5%ae%8c%e6%95%b4%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b%ef%bc%88%e4%b8%80%ef%bc%89-cc%e5%9f%ba%e7%a1%80',
                         'http://www.newbiefly.com/?gift=ios%e6%ba%90%e7%a0%81%e5%a4%a7%e5%85%a8',
                         'http://www.newbiefly.com/?gift=ios8%e5%bc%80%e5%8f%91%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b-%e6%9d%8e%e6%98%8e%e6%9d%b02015%e5%b9%bf%e5%b7%9e1%e6%9c%9f',
                         'http://www.newbiefly.com/?gift=ios%e5%bc%80%e5%8f%91%e7%bb%8f%e5%85%b8%e4%b9%a6%e7%b1%8d',
                         'http://www.newbiefly.com/?gift=%e6%9d%8e%e6%98%8e%e6%9d%b0swift%e4%bb%8e%e5%85%a5%e9%97%a8%e5%88%b0%e7%b2%be%e9%80%9a%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b%e5%ae%8c%e6%95%b4%e7%89%88',
                         'http://www.newbiefly.com/?gift=2014%e5%b9%b4%e9%bb%91%e9%a9%acios8-12%e6%9c%88%e5%85%a8%e5%a5%97-%e6%9d%8e%e6%98%8e%e6%9d%b0',
                         'http://www.newbiefly.com/?gift=2014%e5%b9%b4%e6%9c%80%e6%96%b0%e4%bc%a0-%e6%99%baios%e7%ac%ac%e4%ba%94%e6%9c%9f5-8%e6%9c%88%e4%bb%bd',
                         'http://www.newbiefly.com/?gift=ios%e7%ac%ac%e4%ba%8c%e6%9c%9f%ef%bc%88%e6%96%b0%e6%b5%aa%e5%be%ae%e5%8d%9a%e5%9b%a2%e8%b4%ad%e5%bd%a9%e7%a5%a8%ef%bc%89',
                         'http://www.newbiefly.com/?gift=ios%e7%ac%ac%e5%9b%9b%e6%9c%9f',
                         'http://www.newbiefly.com/?gift=ios%e5%bc%80%e5%8f%91%ef%bc%88%e7%ac%ac%e4%b8%89%e6%9c%9f%ef%bc%89',
                         'http://www.newbiefly.com/?gift=%e6%97%a0%e9%99%90%e4%ba%92%e8%81%94ios%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b%e5%85%a8%e9%9b%86%e4%b9%8bui%e5%9f%ba%e7%a1%80',
                         'http://www.newbiefly.com/?gift=2606', 'http://www.newbiefly.com/?gift=2601',
                         'http://www.newbiefly.com/?gift=2613', 'http://www.newbiefly.com/?gift=2599',
                         'http://www.newbiefly.com/?gift=2550', 'http://www.newbiefly.com/?gift=2591',
                         'http://www.newbiefly.com/?gift=2582', 'http://www.newbiefly.com/?gift=2548',
                         'http://www.newbiefly.com/?gift=2553', 'http://www.newbiefly.com/?gift=2482',
                         'http://www.newbiefly.com/?gift=2485', 'http://www.newbiefly.com/?gift=2489',
                         'http://www.newbiefly.com/?gift=2452', 'http://www.newbiefly.com/?gift=1702',
                         'http://www.newbiefly.com/?gift=2433', 'http://www.newbiefly.com/?gift=2371',
                         'http://www.newbiefly.com/?gift=2396', 'http://www.newbiefly.com/?gift=2367',
                         'http://www.newbiefly.com/?gift=2093', 'http://www.newbiefly.com/?gift=2232',
                         'http://www.newbiefly.com/?gift=2233', 'http://www.newbiefly.com/?gift=2231',
                         'http://www.newbiefly.com/?gift=2185', 'http://www.newbiefly.com/?gift=2187',
                         'http://www.newbiefly.com/?gift=2152', 'http://www.newbiefly.com/?gift=2131',
                         'http://www.newbiefly.com/?gift=2126', 'http://www.newbiefly.com/?gift=2123',
                         'http://www.newbiefly.com/?gift=2097', 'http://www.newbiefly.com/?gift=2088',
                         'http://www.newbiefly.com/?gift=2025', 'http://www.newbiefly.com/?gift=1996',
                         'http://www.newbiefly.com/?gift=1959', 'http://www.newbiefly.com/?gift=1947',
                         'http://www.newbiefly.com/?gift=1889',
                         'http://www.newbiefly.com/?gift=%e5%8c%97%e5%a4%a7%e9%9d%92%e9%b8%9f-javaweb%e5%8c%85%e5%90%aboracle%e6%95%b0%e6%8d%ae%e5%ba%93%e6%95%b0%e6%8d%ae%e7%bb%93%e6%9e%84%e5%92%8c%e7%ae%97%e6%b3%95%e6%95%99%e7%a8%8b%ef%bc%89',
                         'http://www.newbiefly.com/?gift=java%e7%ac%ac168%e6%9c%9f%e5%85%a8%e5%a5%97%e5%8c%85%e5%90%abspringmvc-mybatis-shiro',
                         'http://www.newbiefly.com/?gift=javaweb33%e6%9c%9f%e5%b0%b1%e4%b8%9a%e7%8f%ad',
                         'http://www.newbiefly.com/?gift=java%e9%a1%b9%e7%9b%ae%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b20%e5%a5%97',
                         'http://www.newbiefly.com/?gift=%e5%87%a0%e5%a5%97java%e9%a1%b9%e7%9b%ae%e6%ba%90%e7%a0%81',
                         'http://www.newbiefly.com/?gift=848',
                         'http://www.newbiefly.com/?gift=%e6%9e%81%e5%ae%a2%e5%ad%a6%e9%99%a22015%e6%9c%80%e6%96%b0-javaweb%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b',
                         'http://www.newbiefly.com/?gift=struts2spring3hibernate4maveneasyui%e6%95%b4%e5%90%88%e5%85%a5%e9%97%a8%e8%a7%86%e9%a2%91',
                         'http://www.newbiefly.com/?gift=javaweb10%e6%9c%9f%ef%bc%88web%e5%89%8d%e7%ab%afjspmybatisssh_activity%e6%95%b0%e6%8d%ae%e5%ba%93mavenlucene%ef%bc%89',
                         'http://www.newbiefly.com/?gift=%e5%8c%97%e4%ba%ac%e5%9c%a3%e6%80%9d%e5%9b%adjavase%e5%9f%b9%e8%ae%ad%e6%95%99%e5%ad%a6%e8%a7%86%e9%a2%91',
                         'http://www.newbiefly.com/?gift=2015%e5%b9%b434%e6%9c%9f%e6%9c%80%e6%96%b0php%e6%95%99%e7%a8%8b',
                         'http://www.newbiefly.com/?gift=%e6%9e%81%e5%ae%a2%e5%ad%a6%e9%99%a22015%e6%9c%80%e6%96%b0-php%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b',
                         'http://www.newbiefly.com/?gift=1858', 'http://www.newbiefly.com/?gift=1820',
                         'http://www.newbiefly.com/?gift=1588',
                         'http://www.newbiefly.com/?gift=python%e9%a1%b9%e7%9b%ae%e6%95%99%e7%a8%8b',
                         'http://www.newbiefly.com/?gift=python%e6%8f%90%e9%ab%98%e7%bd%91%e7%bb%9c%e7%bc%96%e7%a8%8b%e5%ae%9e%e6%88%98%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b%e2%98%85%e5%90%ab%e8%af%be%e4%bb%b6%e2%98%85%e7%bd%91%e7%bb%9c%e6%8a%93%e5%8f%96',
                         'http://www.newbiefly.com/?gift=python%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b%e5%9f%ba%e7%a1%80%e7%af%87%e3%80%81%e8%bf%9b%e9%98%b6%e7%af%87%e3%80%81%e9%a1%b9%e7%9b%ae%e7%af%87',
                         'http://www.newbiefly.com/?gift=python%e6%95%99%e7%a8%8b%e8%a7%86%e9%a2%91%e9%9b%86%e5%90%883',
                         'http://www.newbiefly.com/?gift=814', 'http://www.newbiefly.com/?gift=817',
                         'http://www.newbiefly.com/?gift=816', 'http://www.newbiefly.com/?gift=808',
                         'http://www.newbiefly.com/?gift=807', 'http://www.newbiefly.com/?gift=2111',
                         'http://www.newbiefly.com/?gift=2070',
                         'http://www.newbiefly.com/?gift=%e6%9f%90%e6%99%ba%e6%92%ad%e5%ae%a2web%e5%89%8d%e7%ab%af14%e6%9c%9f',
                         'http://www.newbiefly.com/?gift=2015', 'http://www.newbiefly.com/?gift=1976',
                         'http://www.newbiefly.com/?gift=1937', 'http://www.newbiefly.com/?gift=1869',
                         'http://www.newbiefly.com/?gift=1669', 'http://www.newbiefly.com/?gift=1673',
                         'http://www.newbiefly.com/?gift=1643', 'http://www.newbiefly.com/?gift=1610',
                         'http://www.newbiefly.com/?gift=1566',
                         'http://www.newbiefly.com/?gift=node-js%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b',
                         'http://www.newbiefly.com/?gift=extjs4-0%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b-%e4%b8%a4%e5%a5%97%e5%9f%ba%e7%a1%80%e4%b8%80%e5%a5%97%e9%a1%b9%e7%9b%ae%e5%ae%9e%e6%88%98',
                         'http://www.newbiefly.com/?gift=%e6%9e%81%e5%ae%a2%e5%ad%a6%e9%99%a2web%e5%a4%a7%e5%89%8d%e7%ab%af2-web%e5%bc%80%e5%8f%91%e5%ba%93angularjs-bootstrap-reactjs%ef%bc%8cbackbone%ef%bc%89%e7%ad%89',
                         'http://www.newbiefly.com/?gift=%e6%9e%81%e5%ae%a2%e5%ad%a6%e9%99%a2web%e5%a4%a7%e5%89%8d%e7%ab%af2-web%e5%bc%80%e5%8f%91%e5%ba%93%ef%bc%88jquery%e5%8f%8ajquery-ui%ef%bc%89',
                         'http://www.newbiefly.com/?gift=%e6%9e%81%e5%ae%a2%e5%ad%a6%e9%99%a2web%e5%a4%a7%e5%89%8d%e7%ab%af1-web%e5%9f%ba%e7%a1%80%ef%bc%88html5cssjavascript%ef%bc%89',
                         'http://www.newbiefly.com/?gift=%e7%bd%91%e9%a1%b5%e8%ae%be%e8%ae%a1%e6%95%99%e7%a8%8b-%e8%bd%bb%e6%9d%be%e5%ad%a6%e4%bc%9ahtmlcss',
                         'http://www.newbiefly.com/?gift=dreamweaver%e5%bb%ba%e7%ab%99%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b',
                         'http://www.newbiefly.com/?gift=3%e5%a4%a9%e5%ad%a6%e4%bc%9aui%e5%9b%be%e6%a0%87%e8%ae%be%e8%ae%a1-ui%e8%ae%be%e8%ae%a1%e6%95%99%e7%a8%8b',
                         'http://www.newbiefly.com/?gift=2287', 'http://www.newbiefly.com/?gift=2292',
                         'http://www.newbiefly.com/?gift=2293', 'http://www.newbiefly.com/?gift=2298',
                         'http://www.newbiefly.com/?gift=2285', 'http://www.newbiefly.com/?gift=1841',
                         'http://www.newbiefly.com/?gift=1969', 'http://www.newbiefly.com/?gift=1843',
                         'http://www.newbiefly.com/?gift=1815', 'http://www.newbiefly.com/?gift=1811',
                         'http://www.newbiefly.com/?gift=1595', 'http://www.newbiefly.com/?gift=2195',
                         'http://www.newbiefly.com/?gift=2157', 'http://www.newbiefly.com/?gift=2155',
                         'http://www.newbiefly.com/?gift=1899', 'http://www.newbiefly.com/?gift=1716',
                         'http://www.newbiefly.com/?gift=1582',
                         'http://www.newbiefly.com/?gift=xen%e5%92%8ckvm%e4%ba%91%e8%ae%a1%e7%ae%97%e8%99%9a%e6%8b%9f%e5%8c%96%e6%8a%80%e6%9c%af',
                         'http://www.newbiefly.com/?gift=matlab%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b%e8%bd%af%e4%bb%b6',
                         'http://www.newbiefly.com/?gift=2015%e5%b9%b4%e5%a4%a7%e6%95%b0%e6%8d%aehadoop%e6%95%99%e7%a8%8b8%e5%a4%a9',
                         'http://www.newbiefly.com/?gift=%e7%82%bc%e6%95%b0%e6%88%90%e9%87%91openstack%e4%ba%91%e7%b3%bb%e7%bb%9f',
                         'http://www.newbiefly.com/?gift=%e9%be%99%e6%98%9f%e8%ae%a1%e5%88%92_%e6%9c%ba%e5%99%a8%e5%ad%a6%e4%b9%a0%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b',
                         'http://www.newbiefly.com/?gift=%e7%82%bc%e6%95%b0%e6%88%90%e9%87%91%e6%9c%ba%e5%99%a8%e5%ad%a6%e4%b9%a0%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b',
                         'http://www.newbiefly.com/?gift=%e5%bc%80%e8%af%be%e5%90%a7%e8%99%9a%e6%8b%9f%e5%8c%96%e4%b8%8e%e4%ba%91%e8%ae%a1%e7%ae%97%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b%e9%9d%9evip',
                         'http://www.newbiefly.com/?gift=%e5%a4%a7%e6%95%b0%e6%8d%ae%e5%bf%ab%e9%80%9f%e6%95%b0%e6%8d%ae%e6%8c%96%e6%8e%98%e5%b9%b3%e5%8f%b0rapidminer%e6%95%b0%e6%8d%ae%e5%88%86%e6%9e%90',
                         'http://www.newbiefly.com/?gift=%e5%a4%a7%e6%95%b0%e6%8d%ae%e4%b9%8b%e6%8e%a8%e8%8d%90%e7%b3%bb%e7%bb%9f%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b',
                         'http://www.newbiefly.com/?gift=r%e8%af%ad%e8%a8%80%e5%85%a8%e5%a5%97',
                         'http://www.newbiefly.com/?gift=826',
                         'http://www.newbiefly.com/?gift=hadoop%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b%e5%85%a8%e5%a5%97%ef%bc%88%e5%90%b4%e8%b6%85%ef%bc%89',
                         'http://www.newbiefly.com/?gift=hadoop%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b',
                         'http://www.newbiefly.com/?gift=%ef%bc%88redis3-0%e6%8c%81%e4%b9%85%e5%8c%96%e3%80%81%e9%9b%86%e7%be%a4%e3%80%81mysql5%ef%bc%89',
                         'http://www.newbiefly.com/?gift=%e7%8c%8e%e8%b1%b9%e7%bd%91%e6%a0%a1-%e9%bb%91%e5%ae%a2%e6%94%bb%e9%98%b2-%e6%9c%a8%e9%a9%ac%e6%8f%ad%e7%a7%98']

        self.efjfeowjifwijo=['http://www.newbiefly.com/?gift=1943']

        # TestUrl = "http://www.newbiefly.com/?gift=3354"

    def get_json(self, url):
        '''抓取页面'''
        print('抓取页面：{}'.format(url))
        req = urllib2.Request(url, self.urlData, self.headers)
        response = urllib2.urlopen(req)
        html = response.read()
        htmldata = gzip.decompress(html).decode("utf-8")  # 解压网站
        # data = html.decode("utf8", "ignore")
        # print("页面：{}".format(data))
        self.GetBaiDuLink(htmldata, url)
        # self.GetHtmlUrl(htmldata)
        # self.GetPageUrl(htmldata)

    def GetHtmlUrl(self, htmldata):
        '''获得gift页面链接'''
        html = BeautifulSoup(htmldata, 'html.parser')
        DataDiv = html.find_all('div', attrs={'class': 'row clearfix'})
        print('导航：{}'.format(DataDiv))
        LiData = DataDiv[0].find_all('a')
        for Li in LiData:
            if Li:
                if Li['href'] not in self.giftUrls:
                    self.giftUrls.append(Li['href'])
            # Url = Li.find('a')['href']
            # if Url not in self.ClassUrls:
            #     self.ClassUrls.append(Url)
        return

    def GetClassUrl(self, htmldata):
        '''获取分类导航'''
        html = BeautifulSoup(htmldata, 'html.parser')
        DataDiv = html.find_all('div', attrs={'class': 'gift_filter'})
        print('导航：{}'.format(DataDiv))
        LiData = DataDiv[0].find_all('li')
        for Li in LiData:
            Url = Li.find('a')['href']
            if Url not in self.ClassUrls:
                self.ClassUrls.append(Url)
        return

    def GetPageUrl(self, htmldata):
        '''获取其他页连接'''
        html = BeautifulSoup(htmldata, 'html.parser')
        print(html.find('title'))
        PageData = html.find('ul', attrs={'class': 'pagination'})
        if PageData:
            print('页码：{}'.format(PageData))
            for Pa in PageData.find_all('li'):
                # print(Pa)
                if (Pa.find('a')):
                    Url = Pa.find('a')['href']
                    if Url not in self.ClassUrls:
                        print(Url)
                        self.ClassUrls.append(Url)
        return

    def GetBaiDuLink(self, htmldata, url):
        '''获取分享内容'''
        html = BeautifulSoup(htmldata, 'html.parser')
        title = html.find('title')
        print(title)
        DivData = html.find('div', attrs={'class': 'panel-body'})
        DivImgData = html.find('div', attrs={'class': 'entry-thumbnail gift-thumbnail'})
        Img = DivImgData.find('img', attrs={'src': True})
        # print('详情:{}'.format(DivData))
        # print('图片：{}'.format(Img['src']))
        print(title, '\n\n\n\n\n', DivData, '\n\n\n\n\n', Img['src'], '\n\n\n\n\n', 0, url)
        # sqlL = SqlService()
        # if DivData:
        #     sqlL._Link(
        #         "insert into newbiefly (`title`,`html`,`img`,`text`,`state`,`url`) values ('{}','{}','{}','{}','{}','{}')".format(
        #             title, DivData, Img['src'], '', 0, url))
        # else:
        #     sqlL._Link(
        #         "insert into newbiefly (`title`,`html`,`img`,`text`,`state`,`url`) values ('{}','{}','{}','{}','{}','{}')".format(
        #             title, '', '', '', 1, url))
        # sqlL._close()
        return

    def _end(self):
        # print(self.giftUrls)
        return


if __name__ == '__main__':
    NBF = NewbieFly()
    print(len(NBF.giftUrls))
    # for url in NBF.efjfeowjifwijo:
    #     print(url)
    #     NBF.get_json(url)
    #     time.sleep(1.5)
    NBF._end()
